package com.jia.product.controller;


import com.jia.product.entity.SpuInfo;
import com.jia.product.service.SpuInfoService;
import com.jia.product.vo.spu.SpuSaveVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * spu信息(SpuInfo)表控制层
 *
 * @author makejava
 * @since 2025-07-08 18:15:28
 */
@RestController
@RequestMapping("spu/info")
public class SpuInfoController {
    /**
     * 服务对象
     */
    @Resource
    private SpuInfoService spuInfoService;


    @PostMapping("/insert")
    public SpuSaveVo save(@RequestBody SpuSaveVo spuVo) {
        spuInfoService.compoundAddition(spuVo);
        return spuVo;
    }


}

